package com.ikas.ai.server.module.flow.dto;

import com.ikas.ai.server.module.flow.model.FlowInstance;
import com.ikas.ai.server.module.flow.model.FlowNode;
import com.ikas.ai.server.module.flow.model.FlowNodeExec;
import com.ikas.ai.server.module.flow.model.FlowNodeHistory;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @Description: 流程状态和节点状态DTO
 * @Author: qi.yilai
 * @Date: 2023/2/2 10:36
 * @Version: 1.0.0
 **/
@Data
@Builder
public class FlowInstanceAndExecDTO {

    /**
     * 流程实例
     */
    private FlowInstance flowInstance;

    /**
     * 节点执行状态
     */
    private List<FlowNodeExec> execs;

    /**
     * 节点状态
     */
    private List<FlowNodeHistory> nodes;
}
